class OtherRegisterError extends Error {
  constructor(message) {
    super(message)
    this.code = 10001
  }
}
OtherRegisterError.code = 10001

class GetOpenidError extends Error {
  constructor(message) {
    super(message)
    this.code = 10002
  }
}
GetOpenidError.code = 10002

class CreateTokenError extends Error {
  constructor(message) {
    super(message)
    this.code = 10003
  }
}
CreateTokenError.code = 10003

class UserNotRegisterError extends Error {
  constructor(message) {
    super(message)
    this.code = 10004
  }
}
UserNotRegisterError.code = 10004

module.exports = {
  OtherRegisterError,
  CreateTokenError,
  UserNotRegisterError,
}
